<html>
<head><title>数据类型手动转换</title></head>	
<body>
	<h3>数据类型手动转换</h3>
	<hr>
	<script>
		//通过toLowerCase()转换小写
		var myString = " ABCdeFg";
		var lowercased = myString.toLowerCase();
		document.write(myString + " 转换小写: " + lowercased);
		
		document.write("<br>");
		
		var a = typeof(toString(NaN));
		var b = typeof(toString(true));
		var c = parseInt("");
		var d = parseInt("5");
		var e = parseInt("this");
		var f = parseInt("true");
		var g = typeof(d);
		var h = typeof(parseFloat("5"));
	
		document.write("<br>toString(NaN)的类型为 : " + a);
		document.write("<br>toString(true)的类型为 : " + b);
		document.write("<br>parseInt('')的结果为 : " + c);
		document.write("<br>parseInt('5')的结果为 : " + d);
		document.write("<br>parseInt('this')的结果为 : " + e);
		document.write("<br>parseInt(true)的结果为 :"  + f);
		document.write("<br>parseInt('5')的类型为 : " + g);
		document.write("<br>parseFloat('5')的类型为 : " + h);

	</script>

</body>	
</html>
